﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpPwd.aspx.cs" Inherits="CardLogistics.Web.MainPage.SystemMgr.SysUser.UpPwd" %>

<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>用户信息</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function valReq() {
            var altStr = valid_isempty('UserPwd', '原始密码');
            altStr += valid_isempty('NewUserPwd', '新密码');
            altStr += valid_isempty('NewUserPwdOk', '确认密码');

            altStr += valid_isnoCh('UserPwd', '原始密码');
            altStr += valid_isnoCh('NewUserPwd', '新密码');
            altStr += valid_isnoCh('NewUserPwd', '确认密码');
            if (altStr != "") {
                alert(altStr);
                return false;
            }
            else {
                return true;
            }
        }
    </script>
    <style type="text/css">
        .styWidth
        {
            text-align: right; 
            width: 26%;
            padding-right: 10px;
        }
    </style>
</head>
<body>
    <form runat="server">
    <uc1:WebUserControl_Nav ID="WebUserControl_Nav1" runat="server" />
    <table class="theForm" width="100%" border="0" cellspacing="0" cellpadding="0" >
          <tr>
            <td class="styWidth">
                用户名：
            </td>
            <td class="contentTxt">
                <input id="UserName" runat="server" type="text"  readonly ="readonly" maxlength="25" />
            </td>
        </tr>
        <tr>
            <td class="styWidth">
                原始密码：
            </td>
            <td class="contentTxt">
                <input id="UserPwd" runat="server" type="password" class="dfinputNoEmpEx" maxlength="15" />
            </td>
        </tr>
        <tr>
            <td class="styWidth">
                新密码：
            </td>
            <td>
                <input id="NewUserPwd"  runat="server" type="password" class="dfinputNoEmpEx" maxlength="15" />
            </td>
        </tr>
              <tr>
            <td class="styWidth">
                确认密码：
            </td>
            <td>
                <input id="NewUserPwdOk"  runat="server"  type="password" class="dfinputNoEmpEx" maxlength="15"/>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="btn_UpPwd" CssClass="btn" runat="server" Text="修改" OnClientClick="return valReq();"
                    OnClick="btn_UpPwd_Click" />
                <input type="button" class="btn" value="返回" onclick="javascript:history.go(-1);" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
